package Demo3;

interface A{
    void fun1();
}
interface B{
    void fun2();
}
interface C extends A,B{
    void fun3();
}
class CC implements C{
    @Override
    public void fun1() {
        System.out.println("good");
    }

    @Override
    public void fun2() {

    }

    @Override
    public void fun3() {

    }
}
public class Test2 {
    public static void main(String[] args) {
        CC c=new CC();
       A a=c;
       a.fun1();
    }
}
